/*
 * @Author: wuyuxin
 * @Date: 2024-06-21 14:58:25
 * @LastEditors: wuyuxin
 * @LastEditTime: 2024-07-01 14:36:48
 * @Description:
 */
import { createPinia } from 'pinia'
import useLoginStore from './login/login'
import type { App } from 'vue'

const pinia = createPinia()

function registerStore(app: App<Element>) {
  app.use(pinia)

  // 加载数据
  const loginStore = useLoginStore()
  loginStore.loadLocalCacheAction()
}

export default registerStore
